<%--
 $Author:  翟锋$
 $Rev:  $
 $Date:: #$:
  
 Copyright (C) 2012 Seeyon, Inc. All rights reserved.
 This software is the proprietary information of Seeyon, Inc.
 Use is subject to license terms.
--%>
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>已办事项</title>
    <style>
      .layout_north {
        min-width: 100%!important;
      }
    </style>
    <%@ include file="/WEB-INF/jsp/common/commonColList.jsp"%>
	<%@ include file="/WEB-INF/jsp/ctp/workflow/workflowDesigner_js_api.jsp" %>
	<%@ include file="/WEB-INF/jsp/ctp/form/design/formDevelopmentOfadv.jsp" %>
	<%@ include file="/WEB-INF/jsp/common/common_print.jsp" %>
    <script type="text/javascript" charset="UTF-8" src='<c:url value="/apps_res/webmail/js/webmail.js${v3x:resSuffix()}" />'></script>
    <script type="text/javascript" charset="UTF-8" src="${path}/apps_res/collaboration/js/collaboration.js${ctp:resSuffix()}"></script>
    <script type="text/javascript" charset="UTF-8" src="${path}/apps_res/collaboration/js/CollaborationApi.js${ctp:resSuffix()}"></script>
    <script type="text/javascript" charset="UTF-8" src="${path}/apps_res/collaboration/js/listDone.js${ctp:resSuffix()}"></script>
	<link rel="stylesheet" type="text/css" href="${path}/portal/icons/default/fonts/plane/mini_icon.css${ctp:resSuffix()}">
	<link rel="stylesheet" type="text/css" href="${path}/apps_res/bpm/portal/css/bpmPortalIndex.css${ctp:resSuffix()}" />
    <script type="text/javascript">
    
        var _paramTemplateIds = "${ctp:escapeJavascript(paramMap.templeteIds)}";

        var paramMethod = "${ctp:escapeJavascript(param.method)}"
      	//ouyp a6s邮件过滤
		var emailShow = ${v3x:hasPlugin('webmail')};
        //取回
        
        //是否存在转出数据
        var hasDumpData = "${ctp:escapeJavascript(hasDumpData)}";
        var hasBarCode = "${ctp:hasPlugin('barCode')}";
        var hasDoc = "${ctp:hasPlugin('doc')}";
        var hasAIPlugin = "${ctp:escapeJavascript(hasAIPlugin)}";
        var _srcFrom ="${ctp:escapeJavascript(param.srcFrom)}";
        var showAIProcessing = "${ctp:escapeJavascript(showAIProcessing)}";
        var beginTime = "${ctp:escapeJavascript(beginTime)}";
        var endTime = "${ctp:escapeJavascript(endTime)}";
        var openFrom = "${ctp:escapeJavascript(paramMap.openFrom)}";
        var isShowTotal = "${ctp:escapeJavascript(isShowTotal)}";
        var showHandoverButton = "${ctp:escapeJavascript(showHandoverButton)}";  //是否显示工作交接按钮
        var canDel = "${ctp:escapeJavascript(canDel)}";
        var isV5Member = ${CurrentUser.externalType == 0};
        var isVJMember = ${CurrentUser.externalType == 1};
      	//默认显示撤销回退记录
 	   	var showStepbackRecord = "true";
    </script>
</head>
<body>
    <div id='layout'>
        <div class="layout_north f0f0f0" id="north">
		<form id="advanceQueryParam">
            <div style="background-color: #F0F0F0">
                 <div class="more_query_area clearfix" style="display:none">
                    <div class="query_area_body clearfix">
                      <div id="memberNameDiv" class="record_item" style="display:none;">
                        <div class="label">${ctp:i18n("handover.grid.member.js") }:</div>
                        <div class="content">
                          <input type="text" id = "memberName" name="memberName"/>
                        </div>
                      </div>
                      <div id="sendeeNameDiv" class="record_item" style="display:none;">
                        <div class="label">${ctp:i18n("common.receiving.member.label") }:</div>
                        <div class="content">
                          <input type="text" id = "sendeeName" name="sendeeName"/>
                        </div>
                      </div>
                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.subject.label") }:</div>
                        <div class="content">
                          <input type="text" id = "subject" name="subject"/>
                        </div>
                      </div>

                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.template.label") }:</div>
                        <div class="content">
                          <input type="text" id="templateName" name="templateName"/>
                        </div>
                      </div>

                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.importance.label") }:</div>
                        <div class="content">
                          <select id="importantLevel">
							              <option value="">${ctp:i18n("collaboration.newcoll.qxz") }</option>
                            <option value="1">${ctp:i18n("common.importance.putong") }</option>
                            <option value="2">${ctp:i18n("common.importance.zhongyao") }</option>
                            <option value="3">${ctp:i18n("common.importance.feichangzhongyao") }</option>
                          </select>
                        </div>
                      </div>

                      <div id="startMemberNameDiv" class="record_item">
                        <div class="label">${ctp:i18n("common.sender.label") }:</div>
                        <div class="content">
                          <input type="text" id="startMemberName" name="startMemberName"/>
                        </div>
                      </div>
					            <div id="preApproverNameDiv" class="record_item">
                        <div class="label">${ctp:i18n("cannel.display.column.preApprover.label") }:</div>
                        <div class="content">
                          <input type="text" id="preApproverName" name="preApproverName"/>
                        </div>
                      </div>
                      <div class="record_item">
                        <div class="label">${ctp:i18n("common.date.sendtime.label") }:</div>
                        <div class="content">
                          <div class="input_group">
                             <input id="from_createDate" class="comp sub_input" type="text" comp="type:'calendar',ifFormat:'%Y-%m-%d',showsTime:true">
                            <span class="tiem_icon"></span>
                          </div>
                          <span class="middle_line"></span>
                          <div class="input_group">
                            <input id="to_createDate" class="comp sub_input" type="text" comp="type:'calendar',ifFormat:'%Y-%m-%d',showsTime:true">
                            <span class="tiem_icon"></span>
                          </div>
                        </div>
                      </div>

                      <div id="dealDateDiv" class="record_item">
                        <div class="label">${ctp:i18n("common.date.donedate.label") }:</div>
                        <div class="content">
                           <div class="input_group">
                             <input id="from_dealDate" class="comp sub_input" type="text" comp="type:'calendar',ifFormat:'%Y-%m-%d',showsTime:true">
                            <span class="tiem_icon"></span>
                          </div>
                          <span class="middle_line"></span>
                          <div class="input_group">
                            <input id="to_dealDate" class="comp sub_input" type="text" comp="type:'calendar',ifFormat:'%Y-%m-%d',showsTime:true">
                            <span class="tiem_icon"></span>
                          </div>
                        </div>
                      </div>

                      <div id="workflowStateDiv" class="record_item">
                        <div class="label">${ctp:i18n("common.flow.state.label") }:</div>
                        <div class="content">
                          <select id="workflowState">
						                <option value="">${ctp:i18n("collaboration.newcoll.qxz") }</option>
                            <option value="0">${ctp:i18n("common.unend.label") }</option>
                            <option value="1">${ctp:i18n("common.finish.label") }</option>
                            <option value="2">${ctp:i18n("collaboration.eventsource.category.terminate") }</option>
                          </select>
                        </div>
                      </div>
					            <div id="isOverdueDiv" class="record_item">
                        <div class="label">${ctp:i18n("collaboration.condition.affairOverdue") }:</div>
                        <div class="content">
                          <select id="isOverdue">
						                <option value="">${ctp:i18n("collaboration.newcoll.qxz") }</option>
                            <option value="0">${ctp:i18n("common.no") }</option>
                            <option value="1">${ctp:i18n("common.yes") }</option>
                          </select>
                        </div>
                      </div>
                      <c:if test = "${ctp:hasPlugin('doc') == 'true'}">
					              <div id="affairArchiveIdTdDiv" class="record_item">
                          <div class="label">${ctp:i18n("common.pigeonhole.trueOrNot") }:</div>
                          <div class="content">
                            <select id="affairArchiveIdTd">
                            <option value="">${ctp:i18n("collaboration.newcoll.qxz") }</option>
                              <option value="0">${ctp:i18n("common.no") }</option>
                              <option value="1">${ctp:i18n("common.yes") }</option>  
                            </select>
                          </div>
                        </div>
                      </c:if>
                      <!-- 当前待办人搜索 -->
                      <div id="receiverDiv" class="record_item">
                        <div class="label">${ctp:i18n("collaboration.list.currentNodesInfo.label")}:</div>
                        <div class="content">
                          <input type="text" id = "receiver" name="receiver"/>
                        </div>
                      </div>

                      <div class="query_area_footer clearfix">
                        <div class="query_btns clearfix">
                          <div class="query_btn left blue" onclick="advanceQuery('listDone')">
                              <span class="label">${ctp:i18n("common.button.condition.search.label") }</span>
                          </div>
                          <div class="query_btn left gray" onclick="resetParam()">
                              <span class="label">${ctp:i18n("common.button.reset.label") }</span>
                          </div>
                          <c:if test="${ctp:hasPlugin('barCode')}">
                              <div class="left flex display_none" value="barcode" id="col_smart_code">
                                <div class="label query_btn_barcode" >[${ctp:i18n("common.barcode.search.saoyisao") }]</div>
                                <i class="vp-disconnect" id="scanState"></i>
                              </div>
                          </c:if>
                        </div>
                        </div>
                      </div>
                  </div>
                </div>
                </form>
            <!-- 如果是业务生成器创建的一个列表菜单，则不显示面包屑 -->
            <c:if test="${param.srcFrom ne 'bizconfig' }">
                <div class="comp" comp="type:'breadcrumb',comptype:'location',code:'F01_listDone'"></div>
            </c:if>
            <input type='hidden' id='frombizconfigIds' value="${fn:escapeXml(param.textfield)}"/>
            <input type='hidden' id='bisnissMap' value="${fn:escapeXml(param.textfield)}"/>
              <table width="100%" border="0" cellpadding="0">
            	<tr>
            		<td><div id="toolbars"></div></td>
            		<td style="padding-bottom:5px" width="60" align="center" valign="center">
            		     <a id="combinedQuery" class="font_size12 common_button combinedQuery" onclick="showAdvanceSearch();" >${ctp:i18n("common.advance.label") }</a>
            		</td>
            	</tr>
             </table>
        </div>
        <div class="layout_center over_hidden" id="center">
            <table  class="flexme3" id="listDone"></table>
            <div id="grid_detail" class="h100b">
                <iframe id="summary"  width="100%" height="100%" frameborder="0"  class='calendar_show_iframe' style="overflow-y:hidden"></iframe>
            </div>
        </div>
         <input type="hidden" id="zdgzry" name="zdgzry" />
         <div id="htmlID" class="hidden">
        <div class="padding_tb_10 padding_l_10">
            <!-- 跟踪 -->
            <span class="valign_m">${ctp:i18n('collaboration.forward.page.label4')}:</span>
            <select id="gz" class="valign_m">
                <option value="1">${ctp:i18n('common.yes')}</option>
                <option value="0">${ctp:i18n('common.no')}</option>
            </select>
            <div id="gz_ren" class="common_radio_box clearfix margin_t_10">
                <label for="radio1" class="margin_r_10 hand">
                    <input type="radio" value="0" id="radio1" name="option" class="radio_com">${ctp:i18n('common.pending.all')}</label><!-- 全部 -->
                <label for="radio4" class="margin_r_10 hand">
                    <!-- 指定人 -->
                    <input type="radio" value="0" id="radio4" name="option" class="radio_com">${ctp:i18n('col.track.part')}</label>
            </div>
        </div>
    </div>
    </div>
    <ctp:smartCode
            onChangeState="col_onChangeState"
            readerCallBack="col_codeCallback"
            decodeParamFunction="list_done_precodeCallback"
            decodeType="codeflowurl"
            scanType="3"
            onCloseSmartCode="col_onCloseCode"
            onOpenSmartCode="col_onOpenCode"
    />
</body>
</html>
